<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">

<!-- 
# Get your current font family

for family in serif sans-serif monospace Arial Helvetica Verdana "Times New Roman" "Courier New"; do                     
 echo -n "$family: "
 fc-match "$family"
done 

# This prevents letter combinations like "ffi" from being squashed into a single-width character in some monospaced fonts. The whole <match> block needs to be duplicated to include extra fonts. 

<match target="font">
	<test name="family" compare="eq" ignore-blanks="true">
		<string>Nimbus Mono PS</string>
	</test>
	<edit name="fontfeatures" mode="append">
		<string>liga off</string>
	 	<string>dlig off</string>
	</edit>
</match>

# You can test the effectiveness of this with the following command: 
$ echo -e "| worksheet |\n| buffering |\n| difficult |\n| finishing |\n| different |\n| efficient |" | pango-view -//-font="Nimbus Mono PS" /dev/stdin

-->

<fontconfig>
	<match target="font">
		<edit name="antialias" mode="assign">
			<bool>true</bool>
		</edit>
		<edit name="hinting" mode="assign">
			<bool>true</bool>
		</edit>
		<edit name="hintstyle" mode="assign">
			<const>hintfull</const>
		</edit>
		<edit name="rgba" mode="assign">
			<const>rgb</const>
		</edit>
		<edit name="autohint" mode="assign">
			<bool>true</bool>
		</edit>
		<edit name="lcdfilter" mode="assign">
			<const>lcddefault</const>
		</edit>
		<edit name="dpi" mode="assign">
			<double>96</double>
		</edit>
		<test name="family" compare="eq" ignore-blanks="true">
			<string>SF Mono</string>
		</test>
		<edit name="fontfeatures" mode="append">
			<string>liga off</string>
			<string>dlig off</string>
		</edit>
	</match>

	<!-- Set preferred serif, sans serif, and monospace fonts. -->
	<alias>
		<family>serif</family>
		<prefer><family>DejaVu Serif</family></prefer>
	</alias>
	<alias>
		<family>sans-serif</family>
		<prefer><family>DejaVu Sans</family></prefer>
	</alias>
	<alias>
		<family>sans</family>
		<prefer><family>DejaVu Sans</family></prefer>
	</alias>
	<alias>
		<family>monospace</family>
		<prefer><family>SF Mono</family></prefer>
	</alias>
	<!-- Aliases for commonly used MS fonts. -->
<!-- 	<match>
		<test name="family"><string>Arial</string></test>
		<edit name="family" mode="assign" binding="strong">
			<string>Arial</string>
		</edit>
	</match>
	<match>
		<test name="family"><string>Helvetica</string></test>
		<edit name="family" mode="assign" binding="strong">
			<string>Helvetica Compressed</string>
		</edit>
	</match>
	<match>
		<test name="family"><string>Verdana</string></test>
		<edit name="family" mode="assign" binding="strong">
			<string>Verdana</string>
		</edit>
	</match>
	<match>
		<test name="family"><string>Tahoma</string></test>
		<edit name="family" mode="assign" binding="strong">
			<string>Arimo</string>
		</edit>
	</match>
	<match>
		<test name="family"><string>Comic Sans MS</string></test>
		<edit name="family" mode="assign" binding="strong">
			<string>Arimo</string>
		</edit>
	</match>
	<match>
		<test name="family"><string>Times New Roman</string></test>
		<edit name="family" mode="assign" binding="strong">
			<string>Times New Roman</string>
		</edit>
	</match>
	<match>
		<test name="family"><string>Times</string></test>
		<edit name="family" mode="assign" binding="strong">
			<string>Tinos</string>
		</edit>
	</match>
	<match>
		<test name="family"><string>Courier New</string></test>
		<edit name="family" mode="assign" binding="strong">
			<string>Courier New</string>
		</edit>
	</match> -->


</fontconfig>
